package com.zztl.infiniteBand.model

/**
 * Created by yannable on 2018/4/18.
 */

class DeviceBean : BaseResponseBean<DeviceBean.DataBean>() {


    /**
     * code : 0
     * data : {"rows":[{"equipmentId":"EQUI986576048684531712","equipmentMileageSettlementList":[],"equipmentName":"设备二","equipmentState":"2","estimateEarnings":0,"imei":"35682502926897","settlementState":"","todayMileage":"","totalEarnings":0,"yesterdayEarnings":0},{"equipmentId":"EQUI3","equipmentMileageSettlementList":[],"equipmentName":"设备三","equipmentState":"2","estimateEarnings":0,"imei":"35682552721348","settlementState":"","todayMileage":"","totalEarnings":34,"yesterdayEarnings":0},{"equipmentId":"EQUI7","equipmentMileageSettlementList":[],"equipmentName":"设备七","equipmentState":"2","estimateEarnings":0,"imei":"35682552721352","settlementState":"","todayMileage":"","totalEarnings":0,"yesterdayEarnings":0},{"equipmentId":"EQUI4","equipmentMileageSettlementList":[],"equipmentName":"设备四","equipmentState":"2","estimateEarnings":0,"imei":"35682552721349","settlementState":"","todayMileage":"","totalEarnings":0,"yesterdayEarnings":0},{"equipmentId":"EQUI5","equipmentMileageSettlementList":[],"equipmentName":"设备五","equipmentState":"2","estimateEarnings":0,"imei":"35682552721350","settlementState":"","todayMileage":"","totalEarnings":0,"yesterdayEarnings":0}],"total":5}
     */


    class DataBean {
        /**
         * rows : [{"equipmentId":"EQUI986576048684531712","equipmentMileageSettlementList":[],"equipmentName":"设备二","equipmentState":"2","estimateEarnings":0,"imei":"35682502926897","settlementState":"","todayMileage":"","totalEarnings":0,"yesterdayEarnings":0},{"equipmentId":"EQUI3","equipmentMileageSettlementList":[],"equipmentName":"设备三","equipmentState":"2","estimateEarnings":0,"imei":"35682552721348","settlementState":"","todayMileage":"","totalEarnings":34,"yesterdayEarnings":0},{"equipmentId":"EQUI7","equipmentMileageSettlementList":[],"equipmentName":"设备七","equipmentState":"2","estimateEarnings":0,"imei":"35682552721352","settlementState":"","todayMileage":"","totalEarnings":0,"yesterdayEarnings":0},{"equipmentId":"EQUI4","equipmentMileageSettlementList":[],"equipmentName":"设备四","equipmentState":"2","estimateEarnings":0,"imei":"35682552721349","settlementState":"","todayMileage":"","totalEarnings":0,"yesterdayEarnings":0},{"equipmentId":"EQUI5","equipmentMileageSettlementList":[],"equipmentName":"设备五","equipmentState":"2","estimateEarnings":0,"imei":"35682552721350","settlementState":"","todayMileage":"","totalEarnings":0,"yesterdayEarnings":0}]
         * total : 5
         */

        var total: Int = 0
        var rows: List<RowsBean>? = null

        class RowsBean {
            /**
             * equipmentId : EQUI986576048684531712
             * equipmentMileageSettlementList : []
             * equipmentName : 设备二
             * equipmentState : 2
             * estimateEarnings : 0.0
             * imei : 35682502926897
             * settlementState :
             * todayMileage :
             * totalEarnings : 0.0
             * yesterdayEarnings : 0.0
             */

            var equipmentId: String? = null
            var equipmentName: String? = null
            var equipmentState: String? = null
            var estimateEarnings: Double = 0.toDouble()
            var imei: String? = null
            var settlementState: String? = null
            var todayMileage: String? = null
            var totalEarnings: Double = 0.toDouble()
            var yesterdayEarnings: Double = 0.toDouble()
            var equipmentMileageSettlementList: List<*>? = null
            var haveEarn: String? = null
        }
    }
}
